<?php
	header('content-type:text/html;charset=utf-8;');
    $k =  $_GET['k'];
    
    $str = file_get_contents('./lalala.txt');
    
    $str = rtrim($str,'|#x#|'); 
    
    $arr = explode('|#x#|',$str);  
    
	if($str == null){
		die("<div>删除出现问题</div>");
			}	
		unset($arr[$k]);
    
		$str = implode('|#x#|',$arr).'|#x#|';
  
		file_put_contents('./lalala.txt',$str);
    
		echo '删除成功,2秒后跳转';
		echo "<meta http-equiv='refresh' content='2,./show.php'   />";